[#ftl]
[#assign entityName="ArticleType"]
[#assign pathRoot="/admin/cms/basic/type/type_"]

[@jsec.authPage perms=["${entityName}search"]/]
[#assign prms=jweb.params("prm")]
[@frame.root]
  <!-- Default panel contents -->
  [@frame.title]文章类型[/@]
  [@frame.searchForm id="search" prms=prms.ogin]
       [@frame.input id="prm.code" label="编号"/]
       [@frame.input id="prm.name" label="名称"/]
    [/@]
    [@jsec.authBlock perms=["${entityName}ctrl"]]
  [@frame.toolsBar]
    [@frame.toolsBtn class="btn-success" href="${base}${pathRoot}form.shtml" icon="fa-plus"/]
  [/@]
  [/@]
    
    [#assign datas=frame.createHql(entityName)()]
    
  [@table.table id="block" datas=datas prms=prms.url]
    [@table.box path="id"/]
    [@table.text path="code" name="编码"/]
    [@table.text path="name" name="名称"/]
    [@table.text path="pagesTemplate.alias" name="页面模板"/]
    [@jsec.authBlock perms=["blockmanager"]]
    [@table.body name="操作";item]
        [@html.btngroup]
            [@html.href href="${base}${pathRoot}form.shtml?id=${item.id}" icon="fa-edit"/]
            [@html.href href="${base}${pathRoot}remove.shtml?id=${item.id}" class="" icon="fa-remove" confirm="是否删除栏目？"/]
        [/@]
    [/@]
    [/@]
    [/@]
    [@frame.pagesBar data=datas prms=jweb.params("prm").url+jweb.sort().url!/]
[/@]